//
//  XJFlexibleParallaxView.h
//  TabelibleScrollerViewSample
//
//  Created by chenxinju on 16/6/19.
//  Copyright © 2016年 Innovation. All rights reserved.
//

#import <UIKit/UIKit.h>

@class XJFlexibleParallaxView;

@protocol XJFlexibleParallaxViewDelegate <NSObject>

- (void)flexibleParallaxViewDidScrollToTop:(XJFlexibleParallaxView *)flexibleView;

- (void)flexibleParallaxViewDidScrollFRomTop:(XJFlexibleParallaxView *)flexibleView;

- (void)flexibleParallaxViewDidScroll:(XJFlexibleParallaxView *)flexibleView;

@end


@interface XJFlexibleParallaxView : UIView

- (instancetype)initWithFrame:(CGRect)frame topView:(UIView *)topView;
- (void)addSubView:(UIView *)view;
- (void)setContentSize:(CGSize)size;
@property (nonatomic, weak) id<XJFlexibleParallaxViewDelegate> delegate;
@property (nonatomic, assign) CGPoint contentOffset;
@end
